package com.gdx.javatd;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Shell extends Entity {
	
	private float direction;

	public Shell(int X, int Y, float direction) {
		super(X, Y);
	}

	public void render(SpriteBatch batch) {
		batch.begin();
		baseSprite.setPosition(X, Y);
		baseSprite.setRotation(direction);
		baseSprite.draw(batch);
		batch.end();
	}
	
	public static void setBaseTexture(Texture baseTexture) {
		Entity.baseTexture = baseTexture;
		baseTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
	}

}
